home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / tools / cie.lha / cie / cie.el < prev    next >
Lisp/Scheme  |  1993-06-21  |  2KB  |  43 lines

  1. ;;; Example Settings for CIE (c++_in_emacs) package
  2. ;;; Put desirable ones in your default.el, or simply load this file.
  3.  
  4.  
  5. ;;; You should add the following settings to your .emacs,
  6. ;;; modified as appropriate (esp. if you use save-tags-completion-alist)
  7. ;
  8. ;(setq tags-file-name "~/project/TAGS")
  9. ;(setq hier-file-name "~/project/CLASS.hier")
  10.  
  11.  
  12. ;;;===== Goto-File
  13. (global-set-key "\C-c\C-f" 'goto-file)
  14. (autoload 'goto-file "goto-file" 
  15.       "Goto file (and line number or pattern) named at point." t)
  16.  
  17.  
  18. ;;;===== Hierarchy Mode (for .hier files created by hier++)
  19.  
  20. (autoload 'hier-mode          "hier-mode" "Mode for viewing hierarchies generated by hier++." t)
  21.  
  22. (setq auto-mode-alist (cons (cons "\\.hier$" 'hier-mode) auto-mode-alist))
  23.  
  24. ;;; add these functions to C++-mode keys
  25.  
  26. (autoload 'class-hierarchy    "hier-mode" "Display the hierarchy for the given class."  t)
  27. (autoload 'class-members      "hier-mode" "Display all members for the given class."    t)
  28. (autoload 'class-data-members "hier-mode" "Display data members for the given class."   t)
  29.  
  30. (setq c++-mode-hook 
  31.       '(lambda ()
  32.      (define-key c++-mode-map "\C-ch" 'class-hierarchy)
  33.      (define-key c++-mode-map "\C-cm" 'class-members)
  34.      (define-key c++-mode-map "\C-cd" 'class-data-members)))
  35.  
  36.  
  37. ;;;===== Minibuffer Yank (yank in the default)
  38.  
  39. (autoload 'minibuffer-yank "minibuffer-yank" "Utility to yank in defaults." t)
  40.  
  41. (define-key minibuffer-local-completion-map "\C-c\C-y" 'minibuffer-yank)
  42. (define-key minibuffer-local-must-match-map "\C-c\C-y" 'minibuffer-yank)
  43.